package com.web.core.dict;

import com.blue.core.dict.Color;
import com.blue.core.dict.annotation.Dict;

/**
 * 短信类型
 * 
 * @author zhengj
 * @since 1.0 2017年1月14日
 */
@Dict
public enum SmsType
{
	VALID(1, "验证码", Color.BLACK);

	private Integer index;
	private String name;
	private Color color;

	SmsType(Integer index, String name, Color color)
	{
		this.index = index;
		this.name = name;
		this.color = color;
	}

	public Integer getIndex()
	{
		return index;
	}

	public String getName()
	{
		return name;
	}

	public Color getColor()
	{
		return color;
	}

	@Override
	public String toString()
	{
		return String.format("<span style=\"color: %s;\">%s</span>", color.name().toLowerCase(), name);
	}

}
